<template>
    <div class='footer'>
        <van-tabbar route >
            <van-tabbar-item v-for="(v,i) in routerList" :key='i' replace :to="v.path" :icon="v.mate.icon"  >{{v.mate.title}}</van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script>
import routerList from "../router/routerList"
export default {
    data(){
        return{
            routerList:routerList
        }
    }
}
</script>

<style lang='scss'>
    .footer{
        width: 100%;
        .van-tabbar-item--active{
            color:red !important;
        }
    }
</style>